package com.lalilu.lmedia.entity

data class LGenre(
    override val id: String,
    override val name: String,
    override val songs: List<LSong>
) : MusicParent() {

}

/**
 * 将Artist和Song链接起来，使得可以从Song访问到从属于的Artist
 */
fun List<LGenre>.link(): List<LGenre> = onEach { genre ->
    genre.songs.forEach { it.link(genre) }
}